// import Cookies from 'js-cookie'

const state = {
    loginSwitch:false,
    overallNav:0,
}

const getters = {
    GET_LOGIN: (state) => {
        return state.loginSwitch
    },
}


const mutations = {
  TOGGLE_LOGIN: state => {
      state.loginSwitch = !state.loginSwitch
  },
  CLOSE_LOGIN: state => {
      state.loginSwitch = false
  },
  OPEN_LOGIN: state => {
      state.loginSwitch = true
  },
  CHANGE_NAV: (state,navActive) => {
      state.overallNav = navActive
  },
}

const actions = {
  toggleLogin({ commit }) {
    commit('TOGGLE_LOGIN')
  },

}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
